package CoreNRMSystem;

/**
 * Generated from IDL union "DestinationTypeType".
 *
 * @author JacORB IDL compiler V 2.3.0, 17-Feb-2007
 * @version generated at 2013-5-20 22:07:19
 */

public final class DestinationTypeType
	implements org.omg.CORBA.portable.IDLEntity
{
	private CoreNRMSystem.DestinationTypeChoiceType discriminator;
	private byte[] natureOfAddress;
	private CoreNRMSystem.DestType dest;

	public DestinationTypeType ()
	{
	}

	public CoreNRMSystem.DestinationTypeChoiceType discriminator ()
	{
		return discriminator;
	}

	public byte[] natureOfAddress ()
	{
		if (discriminator != CoreNRMSystem.DestinationTypeChoiceType.NatureOfAddressChoice)
			throw new org.omg.CORBA.BAD_OPERATION();
		return natureOfAddress;
	}

	public void natureOfAddress (byte[] _x)
	{
		discriminator = CoreNRMSystem.DestinationTypeChoiceType.NatureOfAddressChoice;
		natureOfAddress = _x;
	}

	public CoreNRMSystem.DestType dest ()
	{
		if (discriminator != CoreNRMSystem.DestinationTypeChoiceType.DestTypeChoice)
			throw new org.omg.CORBA.BAD_OPERATION();
		return dest;
	}

	public void dest (CoreNRMSystem.DestType _x)
	{
		discriminator = CoreNRMSystem.DestinationTypeChoiceType.DestTypeChoice;
		dest = _x;
	}

}
